<aside id="profile">
  <div class="inner profile-inner">
    <div class="base-info profile-block">
      {{ with .Site.Params.gravatar }}
      <img id="avatar" src="https://www.gravatar.com/avatar/{{ . | md5 }}?s=100&d=identicon"/>
      {{ else }}
      <img id="avatar" src="{{ .Site.Params.avatar | absURL }}">
      {{ end }}
      {{ with .Site.Params.author}}<h2 id="name">{{ . }}</h2>{{ end }}
      {{ with .Site.Params.bio }}<h3 id="title">{{ . }}</h3>{{ end }}
      {{ with .Site.Params.location }}<span id="location"><i class="fa fa-map-marker"></i>{{ . }}</span>{{ end }}
      {{ with .Site.Params.profile.follow_button }}
          <a id="follow" href="{{ . }}">
              {{with $.Site.Data.l10n.profile.follow_button}}{{.}}{{end}}
          </a>
      {{ end }}
    </div>
    <div class="article-info profile-block">
      <div class="article-info-block">
        {{ len (where .Site.RegularPages "Type" "post") }}
        <span>{{with .Site.Data.l10n.profile.posts}}{{.}}{{end}}</span>
      </div>
      <div class="article-info-block">
        {{ if isset .Site.Taxonomies "tags" }}
          {{ len .Site.Taxonomies.tags }}
        {{ else }}
          0
        {{ end }}
        <span>
            {{with .Site.Data.l10n.profile.tags}}{{.}}{{end}}
        </span>
      </div>
    </div>
    <div class="profile-block social-links">
      <table>
        <tr>
          {{ partial "social" . }}
          <td><a href="{{ .Site.RSSLink }}" target="_blank" title="RSS"><i class="fa fa-rss"></i></a></td>
        </tr>
      </table>
    </div>
  </div>
</aside>
